<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>UC-VID-003：进度跟踪原型</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@5.12.8/dist/reset.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        
        .header {
            background: #fff;
            padding: 16px 24px;
            border-bottom: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .breadcrumb {
            color: #666;
            font-size: 14px;
        }
        
        .breadcrumb a {
            color: #1890ff;
            text-decoration: none;
        }
        
        .main-content {
            padding: 24px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        
        .stat-card {
            background: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #fff;
        }
        
        .stat-icon.primary {
            background: #1890ff;
        }
        
        .stat-icon.success {
            background: #52c41a;
        }
        
        .stat-icon.warning {
            background: #faad14;
        }
        
        .stat-icon.danger {
            background: #ff4d4f;
        }
        
        .stat-content {
            flex: 1;
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }
        
        .stat-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 4px;
        }
        
        .stat-change {
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .stat-change.positive {
            color: #52c41a;
        }
        
        .stat-change.negative {
            color: #ff4d4f;
        }
        
        .content-area {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 24px;
        }
        
        .main-panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .panel-header {
            padding: 20px;
            border-bottom: 1px solid #e8e8e8;
            background: #fafafa;
        }
        
        .panel-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .panel-subtitle {
            font-size: 12px;
            color: #666;
        }
        
        .panel-content {
            padding: 20px;
        }
        
        .progress-overview {
            margin-bottom: 24px;
        }
        
        .progress-item {
            margin-bottom: 16px;
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .progress-title {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }
        
        .progress-percentage {
            font-size: 12px;
            color: #666;
        }
        
        .progress-bar {
            width: 100%;
            height: 8px;
            background: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: #1890ff;
            border-radius: 4px;
            transition: width 0.3s;
        }
        
        .progress-fill.success {
            background: #52c41a;
        }
        
        .progress-fill.warning {
            background: #faad14;
        }
        
        .progress-fill.danger {
            background: #ff4d4f;
        }
        
        .timeline {
            position: relative;
            padding-left: 20px;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 8px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #e8e8e8;
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 20px;
            padding-left: 20px;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 6px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #1890ff;
            border: 2px solid #fff;
            box-shadow: 0 0 0 2px #1890ff;
        }
        
        .timeline-item.completed::before {
            background: #52c41a;
            box-shadow: 0 0 0 2px #52c41a;
        }
        
        .timeline-item.current::before {
            background: #faad14;
            box-shadow: 0 0 0 2px #faad14;
        }
        
        .timeline-content {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 12px 16px;
        }
        
        .timeline-title {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
        }
        
        .timeline-meta {
            font-size: 12px;
            color: #666;
            display: flex;
            gap: 16px;
        }
        
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .sidebar-panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid #e8e8e8;
            background: #fafafa;
        }
        
        .sidebar-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }
        
        .sidebar-content {
            padding: 16px;
        }
        
        .user-list {
            list-style: none;
        }
        
        .user-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .user-item:last-child {
            border-bottom: none;
        }
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #1890ff;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 500;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-size: 13px;
            font-weight: 500;
            color: #333;
            margin-bottom: 2px;
        }
        
        .user-progress {
            font-size: 11px;
            color: #666;
        }
        
        .user-progress-bar {
            width: 100%;
            height: 4px;
            background: #f0f0f0;
            border-radius: 2px;
            margin-top: 4px;
        }
        
        .user-progress-fill {
            height: 100%;
            background: #52c41a;
            border-radius: 2px;
        }
        
        .chart-container {
            height: 200px;
            background: #f8f9fa;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 14px;
        }
        
        .filter-tabs {
            display: flex;
            border-bottom: 1px solid #e8e8e8;
            margin-bottom: 16px;
        }
        
        .filter-tab {
            flex: 1;
            padding: 8px 12px;
            text-align: center;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
            font-size: 12px;
        }
        
        .filter-tab.active {
            color: #1890ff;
            border-bottom-color: #1890ff;
            background: #f0f8ff;
        }
        
        .btn {
            padding: 8px 16px;
            border: 1px solid;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: #1890ff;
            border-color: #1890ff;
            color: #fff;
        }
        
        .btn-primary:hover {
            background: #40a9ff;
            border-color: #40a9ff;
        }
        
        .btn-default {
            background: #fff;
            border-color: #d9d9d9;
            color: #333;
        }
        
        .btn-default:hover {
            border-color: #1890ff;
            color: #1890ff;
        }
        
        .btn-success {
            background: #52c41a;
            border-color: #52c41a;
            color: #fff;
        }
        
        .btn-success:hover {
            background: #73d13d;
            border-color: #73d13d;
        }
        
        .action-buttons {
            display: flex;
            gap: 8px;
            margin-top: 16px;
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: #fff;
            border-radius: 8px;
            padding: 24px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #999;
        }
        
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 20px;
        }
        
        .table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .table th,
        .table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .table th {
            background: #fafafa;
            font-weight: 600;
            color: #333;
            font-size: 12px;
        }
        
        .table td {
            font-size: 13px;
        }
        
        .status-tag {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
        }
        
        .status-tag.completed {
            background: #f6ffed;
            color: #52c41a;
            border: 1px solid #b7eb8f;
        }
        
        .status-tag.in-progress {
            background: #fff7e6;
            color: #faad14;
            border: 1px solid #ffd591;
        }
        
        .status-tag.not-started {
            background: #f5f5f5;
            color: #8c8c8c;
            border: 1px solid #d9d9d9;
        }
        
        @media (max-width: 768px) {
            .content-area {
                grid-template-columns: 1fr;
            }
            
            .stats-cards {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 页面头部 -->
    <div class="header">
        <div class="breadcrumb">
            <a href="#">首页</a> > <a href="#">学习管理</a> > 进度跟踪
        </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
        <!-- 统计卡片 -->
        <div class="stats-cards">
            <div class="stat-card">
                <div class="stat-icon primary">📊</div>
                <div class="stat-content">
                    <div class="stat-value">85%</div>
                    <div class="stat-label">整体完成率</div>
                    <div class="stat-change positive">↗ +5% 较上周</div>
                </div>
            </div>
            <div class="stat-card">
                <div class="stat-icon success">👥</div>
                <div class="stat-content">
                    <div class="stat-value">156</div>
                    <div class="stat-label">参与学员</div>
                    <div class="stat-change positive">↗ +12 新增</div>
                </div>
            </div>
            <div class="stat-card">
                <div class="stat-icon warning">⏱️</div>
                <div class="stat-content">
                    <div class="stat-value">2.5h</div>
                    <div class="stat-label">平均学习时长</div>
                    <div class="stat-change positive">↗ +0.3h 较上周</div>
                </div>
            </div>
            <div class="stat-card">
                <div class="stat-icon danger">⚠️</div>
                <div class="stat-content">
                    <div class="stat-value">23</div>
                    <div class="stat-label">待处理问题</div>
                    <div class="stat-change negative">↘ -3 较上周</div>
                </div>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content-area">
            <!-- 主面板 -->
            <div class="main-panel">
                <div class="panel-header">
                    <div class="panel-title">学习进度概览</div>
                    <div class="panel-subtitle">基础操作培训课程 - 更新于 2024-05-15 15:30</div>
                </div>
                
                <div class="panel-content">
                    <!-- 进度概览 -->
                    <div class="progress-overview">
                        <div class="progress-item">
                            <div class="progress-header">
                                <span class="progress-title">课程完成度</span>
                                <span class="progress-percentage">85%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill success" style="width: 85%;"></div>
                            </div>
                        </div>
                        
                        <div class="progress-item">
                            <div class="progress-header">
                                <span class="progress-title">章节完成度</span>
                                <span class="progress-percentage">78%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 78%;"></div>
                            </div>
                        </div>
                        
                        <div class="progress-item">
                            <div class="progress-header">
                                <span class="progress-title">作业完成度</span>
                                <span class="progress-percentage">92%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill success" style="width: 92%;"></div>
                            </div>
                        </div>
                        
                        <div class="progress-item">
                            <div class="progress-header">
                                <span class="progress-title">考试通过率</span>
                                <span class="progress-percentage">65%</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill warning" style="width: 65%;"></div>
                            </div>
                        </div>
                    </div>

                    <!-- 时间线 -->
                    <div class="timeline">
                        <div class="timeline-item completed">
                            <div class="timeline-content">
                                <div class="timeline-title">课程开始</div>
                                <div class="timeline-meta">
                                    <span>2024-05-01 09:00</span>
                                    <span>156人参与</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="timeline-item completed">
                            <div class="timeline-content">
                                <div class="timeline-title">第1章：准备工具</div>
                                <div class="timeline-meta">
                                    <span>2024-05-01 09:30</span>
                                    <span>完成率: 95%</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="timeline-item completed">
                            <div class="timeline-content">
                                <div class="timeline-title">第2章：开始操作</div>
                                <div class="timeline-meta">
                                    <span>2024-05-08 10:00</span>
                                    <span>完成率: 88%</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="timeline-item current">
                            <div class="timeline-content">
                                <div class="timeline-title">第3章：完成检查</div>
                                <div class="timeline-meta">
                                    <span>2024-05-15 14:00</span>
                                    <span>进行中: 65%</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="timeline-item">
                            <div class="timeline-content">
                                <div class="timeline-title">最终考试</div>
                                <div class="timeline-meta">
                                    <span>2024-05-22 10:00</span>
                                    <span>待开始</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 侧边栏 -->
            <div class="sidebar">
                <!-- 学员进度 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">学员进度排行</div>
                    </div>
                    <div class="sidebar-content">
                        <ul class="user-list">
                            <li class="user-item">
                                <div class="user-avatar">张</div>
                                <div class="user-info">
                                    <div class="user-name">张三</div>
                                    <div class="user-progress">完成度: 95%</div>
                                    <div class="user-progress-bar">
                                        <div class="user-progress-fill" style="width: 95%;"></div>
                                    </div>
                                </div>
                            </li>
                            <li class="user-item">
                                <div class="user-avatar">李</div>
                                <div class="user-info">
                                    <div class="user-name">李四</div>
                                    <div class="user-progress">完成度: 92%</div>
                                    <div class="user-progress-bar">
                                        <div class="user-progress-fill" style="width: 92%;"></div>
                                    </div>
                                </div>
                            </li>
                            <li class="user-item">
                                <div class="user-avatar">王</div>
                                <div class="user-info">
                                    <div class="user-name">王五</div>
                                    <div class="user-progress">完成度: 88%</div>
                                    <div class="user-progress-bar">
                                        <div class="user-progress-fill" style="width: 88%;"></div>
                                    </div>
                                </div>
                            </li>
                            <li class="user-item">
                                <div class="user-avatar">赵</div>
                                <div class="user-info">
                                    <div class="user-name">赵六</div>
                                    <div class="user-progress">完成度: 85%</div>
                                    <div class="user-progress-bar">
                                        <div class="user-progress-fill" style="width: 85%;"></div>
                                    </div>
                                </div>
                            </li>
                            <li class="user-item">
                                <div class="user-avatar">钱</div>
                                <div class="user-info">
                                    <div class="user-name">钱七</div>
                                    <div class="user-progress">完成度: 78%</div>
                                    <div class="user-progress-bar">
                                        <div class="user-progress-fill" style="width: 78%;"></div>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- 学习趋势 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">学习趋势</div>
                    </div>
                    <div class="sidebar-content">
                        <div class="filter-tabs">
                            <div class="filter-tab active" onclick="switchTrend(this, 'week')">本周</div>
                            <div class="filter-tab" onclick="switchTrend(this, 'month')">本月</div>
                            <div class="filter-tab" onclick="switchTrend(this, 'quarter')">本季度</div>
                        </div>
                        <div class="chart-container">
                            📈 学习趋势图表
                        </div>
                    </div>
                </div>

                <!-- 快速操作 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">快速操作</div>
                    </div>
                    <div class="sidebar-content">
                        <div class="action-buttons">
                            <button class="btn btn-primary" onclick="exportReport()">📊 导出报告</button>
                            <button class="btn btn-success" onclick="sendReminder()">📧 发送提醒</button>
                            <button class="btn btn-default" onclick="viewDetails()">👁️ 查看详情</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 详细报告弹窗 -->
    <div class="modal" id="reportModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title">详细进度报告</h3>
                <button class="modal-close" onclick="closeModal()">&times;</button>
            </div>
            <div class="modal-body">
                <table class="table">
                    <thead>
                        <tr>
                            <th>学员姓名</th>
                            <th>完成度</th>
                            <th>学习时长</th>
                            <th>最后学习</th>
                            <th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>张三</td>
                            <td>95%</td>
                            <td>4.2小时</td>
                            <td>2024-05-15 14:30</td>
                            <td><span class="status-tag completed">已完成</span></td>
                        </tr>
                        <tr>
                            <td>李四</td>
                            <td>92%</td>
                            <td>3.8小时</td>
                            <td>2024-05-15 13:45</td>
                            <td><span class="status-tag completed">已完成</span></td>
                        </tr>
                        <tr>
                            <td>王五</td>
                            <td>88%</td>
                            <td>3.5小时</td>
                            <td>2024-05-15 12:20</td>
                            <td><span class="status-tag in-progress">进行中</span></td>
                        </tr>
                        <tr>
                            <td>赵六</td>
                            <td>85%</td>
                            <td>3.2小时</td>
                            <td>2024-05-14 16:10</td>
                            <td><span class="status-tag in-progress">进行中</span></td>
                        </tr>
                        <tr>
                            <td>钱七</td>
                            <td>78%</td>
                            <td>2.9小时</td>
                            <td>2024-05-14 11:30</td>
                            <td><span class="status-tag in-progress">进行中</span></td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" onclick="closeModal()">关闭</button>
                <button class="btn btn-primary" onclick="downloadReport()">下载报告</button>
            </div>
        </div>
    </div>

    <script>
        // 趋势切换
        function switchTrend(element, period) {
            document.querySelectorAll('.filter-tab').forEach(tab => {
                tab.classList.remove('active');
            });
            element.classList.add('active');
            console.log('切换到趋势:', period);
        }

        // 快速操作
        function exportReport() {
            console.log('导出报告');
        }

        function sendReminder() {
            console.log('发送提醒');
        }

        function viewDetails() {
            document.getElementById('reportModal').style.display = 'flex';
        }

        function downloadReport() {
            console.log('下载报告');
            closeModal();
        }

        // 弹窗控制
        function closeModal() {
            document.getElementById('reportModal').style.display = 'none';
        }

        // 点击弹窗外部关闭
        document.getElementById('reportModal').addEventListener('click', (e) => {
            if (e.target.id === 'reportModal') {
                closeModal();
            }
        });

        // 初始化
        document.addEventListener('DOMContentLoaded', () => {
            console.log('进度跟踪页面初始化');
        });
    </script>
</body>
</html>

